package ute.mvc.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import ute.mvc.dao.AssignmentDAO;
import ute.mvc.model.Assignment;

@Service("assignmentService")
public class AssignmentServiceImpl implements AssignmentDAO{

	@Autowired
	AssignmentDAO assignmentDAO;
	
	@Transactional
	public void addAssignment(Assignment assignmnent) {
		assignmentDAO.addAssignment(assignmnent);
	}
	@Transactional
	public void updateAssignment(Assignment assignmnent) {
		assignmentDAO.updateAssignment(assignmnent);
	}
	@Transactional
	public void deleteAssignment(Assignment assignmnent) {
		assignmentDAO.deleteAssignment(assignmnent);
	}

}
